package com.mysns.core.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 博客日志.
 * 
 * @author zhouych
 */
@SuppressWarnings("serial")
public class Blog implements Serializable {

	/**
	 * 主键 id
	 */
	private long id;
	
	/**
	 * 日志作者
	 */
	private GenericUser owner;
	
	/**
	 * 日志类型
	 */
	private BlogCategory blogCategory;
	
	/**
	 * 日志主题
	 */
	private String title;
	
	/**
	 * 日志标签
	 */
	private String[] tags;
	
	/**
	 * 日志内容
	 */
	private String content;
	
	/**
	 * 发布日期
	 */
	private Date pubDate;
	
	/**
	 * 浏览次数
	 */
	private int viewCount;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public GenericUser getOwner() {
		return owner;
	}

	public void setOwner(GenericUser owner) {
		this.owner = owner;
	}

	public BlogCategory getBlogCategory() {
		return blogCategory;
	}

	public void setBlogCategory(BlogCategory blogCategory) {
		this.blogCategory = blogCategory;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String[] getTags() {
		return tags;
	}

	public void setTags(String[] tags) {
		this.tags = tags;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getPubDate() {
		return pubDate;
	}

	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}

	public int getViewCount() {
		return viewCount;
	}

	public void setViewCount(int viewCount) {
		this.viewCount = viewCount;
	}
}
